<script type="text/javascript" >
    stSocialMediaToolbox.load_tooltip();
    stSocialMediaToolbox.on_submitform('#settingForm');

</script>

<div class="w100p bgl">
    <div class="w100p bgr p5b">
       <div class="w360 p20t po"  style="margin:0 auto;width: 458px;">
        	<div class="sd_l"></div>
            <div class="sd_r"></div>
        	<div class="w360 content_top" style="width:361px;"></div>
            <div class="w360 content_mid"  style="width:361px;">
                <?php if ($functions->appPermission($config, 'applications')){?>
                <div class="icon1" style="border-top:0px;" onclick="window.location='admin.php?page=stFacebookToolbox&action=applications&redirect=1'">Form Builder</div>
                <?php }?>
                <?php if ($functions->appPermission($config, 'gallery_app')){?>
                <div class="icon4" style="border-top:0px;" onclick="window.location='admin.php?page=stFacebookToolbox&action=gallery_app'">Gallery</div>
                <?php }?>
                <?php if ($functions->appPermission($config, 'appPostcard')){?>
                <div class="icon2" onclick="window.location='admin.php?page=stFacebookToolbox&action=dashboardPostcard'">Dynamic postcard</div>
                <?php }?>
                <?php if ($functions->appPermission($config, 'appImageBuilder')){?>
                <div class="icon3">Image map builder</div>
                <?php }?>
                <?php if ($functions->appPermission($config, 'coupon')){?>
                <div class="icon5" onclick="window.location='admin.php?page=stFacebookToolbox&action=coupon'">Coupons</div>
                <?php }?>
                <?php if ($functions->appPermission($config, 'fbCms')){?>
                <form id="fbCmsForm" action="<?php echo $fbCmsData['fbCmsUrl']; ?>/wp-login.php" method="POST" target="_blank" >
                    <input type="hidden" name="log" value="<?php echo $fbCmsData['fbCmsUser']; ?>" />
                    <input type="hidden" name="pwd" value="<?php echo $fbCmsData['fbCmsPassword']; ?>" />  
                </form>
                <div class="icon7" onclick="jQuery('#fbCmsForm').submit()">Facebook CMS</div>
                <?php }?>
                <?php if ($functions->appPermission($config, 'fbContest')){?>
                <div class="iconcontest" onclick="window.location='admin.php?page=stContestToolbox&action=contest_list'">Facebook konkurranse-modul</div>
                <?php }?>

            </div>

            <div class="w360 content_bottom"></div>
        </div>
    </div>
</div>
<style>
    .ui-widget-content {
        background:none;
    }
</style>
<input type="hidden" id="default" value="<?php echo $default;?>" />